﻿/*
    电子印章授权表
 */
using Abp.Domain.Entities.Auditing;
using SOEI.Solution.Customized;
using SOEI.Solution.Integratedes.Organization;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace SOEI.Solution.Integratedes.ElectronicSignet
{
    /// <summary>
    /// 经济机构表
    /// </summary>
    [Table("NESF_SIGNETGRANTS")]
    public class SignetGrant: AuditedEntity<long>
    {
        /// <summary>
        /// 人员编号
        /// </summary>
        [Column("RYBH")]
        public string RYBH { get; set; }

        /// <summary>
        /// 所属机构的编号
        /// </summary>
        [Column("JGBH")]
        public string JGBH { get; set; }

        /// <summary>
        /// 授权状态
        /// </summary>
        [Column("SQZT")]
        public string SQZT { get; set; }

        /// <summary>
        /// 授权方式【0 永久授权 1 期限授权】
        /// </summary>
        [Column("SQFS")]
        public EGrantType SQFS { get; set; }

        /// <summary>
        /// 失效日期
        /// </summary>
        [Column("SXRQ")]
        public DateTime SXRQ { get; set; }

        /// <summary>
        /// 授权备注
        /// </summary>
        [Column("REMARK")]
        public string Remark { get; set; }

        /// <summary>
        /// EQB 个人账户编号（若为空则没有注册个人账号）
        /// </summary>
        [Column("ACCOUNTID")]
        public string AccountID { get; set; }


        #region -------------------------------------------------非映射字段---------------------------------------------- 
        ///// <summary>
        ///// 人员名称
        ///// </summary>
        //[NotMapped]
        //public string RYMC { get; set; }

        ///// <summary>
        ///// 联系电话
        ///// </summary>
        //[NotMapped]
        //public string LXDH { get; set; }

        ///// <summary>
        ///// 身份证
        ///// </summary>
        //[NotMapped]
        //public string SFZH { get; set; }
        #endregion
    }
}
